import request from '@/utils/request'

// 查询PDF基本配置列表
export function listBase(query) {
  return request({
    url: '/system/base/list',
    method: 'get',
    params: query
  })
}

export function listAllBankType() {
  return request({
    url: '/system/base/listAll',
    method: 'get'
  })
}

// 查询PDF基本配置详细
export function getBase(id) {
  return request({
    url: '/system/base/' + id,
    method: 'get'
  })
}

// 新增PDF基本配置
export function addBase(data) {
  return request({
    url: '/system/base',
    method: 'post',
    data: data
  })
}

// 修改PDF基本配置
export function updateBase(data) {
  return request({
    url: '/system/base',
    method: 'put',
    data: data
  })
}

// 删除PDF基本配置
export function delBase(id) {
  return request({
    url: '/system/base/' + id,
    method: 'delete'
  })
}
